const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 建立 token 的快捷访问
  token: state => state.user.token,
  // 建立对于用户名称的快捷访问
  name: state => state.user.userInfo.username,
  // 建立对于用户 id 的快捷访问
  userId: state => state.user.userInfo.userId,
  // 建立头像快捷访问
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 建立对于公司 ID 的快捷访问
  companyId: state => state.user.userInfo.companyId,
  // 建立权限模块下的快捷访问
  routes: state => state.permission.routes
}
export default getters
